package cn.trdu._07springaop.egaop1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试类
 */
public class TestOrderService {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.trdu._07springaop");
        OrderServiceImpl bean = context.getBean(OrderServiceImpl.class);
        bean.placeOrder(5);
    }
}
